package khleuven.mondzorg.app;

import khleuven.mondzorg.Logger;
import khleuven.mondzorg.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class ActivityWithSettingsAndHelp extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	public boolean openSettings(MenuItem item){
		Logger.logApp("Settings via onClick");
        startActivity(new Intent(ActivityWithSettingsAndHelp.this, SettingsActivity.class));
		return true;
	}
	
	public boolean openHelp(MenuItem item){
    	Logger.logApp("Help via onClick");
    	//TODO: add some help
        return true;
	}	
}
